import moment from 'moment/moment.js';
import { data_format } from '@/common/config.js';

export const formatTime = (value, fmt = data_format) => {
  if (!value) return '';
  return moment(value).format(fmt);
};

export { moment };
